@echo off
set VER=%1
if "%VER%" == "" (
	echo Required parameter missing: make_package {version}
	pause
	exit /b 1
)
mkdir !release!\scriptext-%1
mkdir !release!\scriptext-%1\x86
mkdir !release!\scriptext-%1\x64
mkdir !release!\scriptext-%1\perlext
mkdir !release!\scriptext-%1\common
mkdir !release!\scriptext-%1\windbg\inc
mkdir !release!\scriptext-%1\windbg\lib\x86
mkdir !release!\scriptext-%1\windbg\lib\x64

copy /Y /B build-package.txt !release!\scriptext-%1\install.txt
copy /Y /B Release\se.dll !release!\scriptext-%1\x86\
copy /Y /B x64\Release\se.dll !release!\scriptext-%1\x64\
copy /Y /B common !release!\scriptext-%1\common\
copy /Y /B perlext\*.cpp !release!\scriptext-%1\perlext\
copy /Y /B perlext\*.cxx !release!\scriptext-%1\perlext\
copy /Y /B perlext\*.h !release!\scriptext-%1\perlext\
copy /Y /B perlext\*.pl !release!\scriptext-%1\perlext\
copy /Y /B perlext\*.pm !release!\scriptext-%1\perlext\
copy /Y /B windbg !release!\scriptext-%1\windbg\
copy /Y /B windbg\inc !release!\scriptext-%1\windbg\inc\
copy /Y /B windbg\lib\x86 !release!\scriptext-%1\windbg\lib\x86\
copy /Y /B windbg\lib\x64 !release!\scriptext-%1\windbg\lib\x64\

mkdir !debug!\scriptext-%1
mkdir !debug!\scriptext-%1\x86
mkdir !debug!\scriptext-%1\x64

copy /Y /B Release\se.pdb !debug!\scriptext-%1\x86\
copy /Y /B x64\Release\se.pdb !debug!\scriptext-%1\x64\

pause
